﻿using BaiTu.Framework.Core.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaiTu.IEventServices
{
    public interface IEventBus
    {
        void Publish(IEvent evt);
        void Publish<T>(T evt) where T : IEvent;
        void Subscribe<T>() where T : IEvent;
        void Subscribe(Type evtType);
    }
}
